﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FittyWars.GraphicUtils
{
    public class GraphicEntity
    {
        public enum Type
        {
            Fitty,
            Duck,
            Leaf,
            Worm
        }

        public Bitmap Bitmap { get; private set; }
        public int Up { get; private set; }
        public int Left { get; private set; }

        public static GraphicEntity Fitty = new GraphicEntity
        {
            Bitmap = global::FittyWars.Properties.Resources.fitty,
            Up = 5,
            Left = 5
        };

        public static GraphicEntity Duck = new GraphicEntity
        {
            Bitmap = global::FittyWars.Properties.Resources.duck,
            Up = 4,
            Left = 4
        };

        public static GraphicEntity Leaf = new GraphicEntity
        {
            Bitmap = global::FittyWars.Properties.Resources.leaf,
            Up = 3,
            Left = 3
        };

        public static GraphicEntity Worm = new GraphicEntity
        {
            Bitmap = global::FittyWars.Properties.Resources.worm,
            Up = 3,
            Left = 3
        };

        public static readonly Dictionary<Type, GraphicEntity> Dict = new Dictionary<Type, GraphicEntity>
        {
            {Type.Fitty,Fitty},
            {Type.Duck,Duck},
            {Type.Leaf,Leaf},
            {Type.Worm,Worm}
        };

    }

    public class EntityLink
    {
        public int Posx { get; set; }
        public int Posy { get; set; }
        public GraphicEntity.Type Type { get; set; }
    }


}
